import request from '@/utils/request'

// 查询维修通知列表
export function listFwRepairRecord(query) {
  return request({
    url: '/device/fwRepairRecord/list',
    method: 'get',
    params: query
  })
}

// 查询维修通知详细
export function getFwRepairRecord(id) {
  return request({
    url: '/device/fwRepairRecord/' + id,
    method: 'get'
  })
}

// 新增维修通知
export function addFwRepairRecord(data) {
  return request({
    url: '/device/fwRepairRecord',
    method: 'post',
    data: data
  })
}

// 修改维修通知
export function updateFwRepairRecord(data) {
  return request({
    url: '/device/fwRepairRecord',
    method: 'put',
    data: data
  })
}

// 删除维修通知
export function delFwRepairRecord(id) {
  return request({
    url: '/device/fwRepairRecord/' + id,
    method: 'delete'
  })
}
